<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class Testcontroller extends Controller
{
    public function test()
    {
    	$data1 = DB::table('cate')-> where('pid','=',0)->get();
    	// var_dump($data1);
    	// die();
    	return view('home.test.test',['data1'=>$data1]);
    }
    // public function test2()
    // {
    // 	$data1 = DB::table('cate')-> where('pid','=',0)->get();
    // 	// var_dump($data1);
    // 	// die();
    // 	return view('home.test.test',['data1'=>$data1]);
    // }
}
